const state = {
    city: {}
}
const actions = {
    saveCity: ({ commit }, payload) => {
        commit('SAVECITY', payload)
    },
    clearCity: ({ commit }) => {
        commit('CLEARCITY')
    }
}
const mutations = {
    SAVECITY: (state, payload) => {
        state.city = payload
    },
    CLEARCITY: state => state.city = {}
}
export default {
    state,
    actions,
    mutations
}